<%@ page language="java" import="java.util.*,com.edu.ujn.myh.domain.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<TITLE>无标题页</TITLE>
 <base href="<%=basePath%>">
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<STYLE type="text/css"> 
{
	FONT-SIZE: 12px
}
#menuTree A {
	COLOR:#000000 ; TEXT-DECORATION: none
}
</STYLE>
<SCRIPT src="js/TreeNode.js" type="text/javascript"></SCRIPT>
<SCRIPT src="js/Tree.js" type="text/javascript"></SCRIPT>
<META content="MSHTML 6.00.2900.5848" name="GENERATOR">
</HEAD>
<BODY
style="background-color:#E8F2FE;font-size:10pt;font-family:宋体;">
<TABLE height="100%" cellSpacing="0" cellPadding="0" width="100%" style="margin-top:-20px;margin-left:-10px" border="0">
    <TR>
      <TD colspan="3" style="FONT-SIZE: 18px;BACKGROUND-IMAGE: url(images/bg_left_tc.gif); FONT-FAMILY: system;height:40px;margin-top:8px" bgcolor="#7C7CC6"></TD>
    </TR>
    <TR>
      <TD id="menuTree" colspan="3"
    style="COLOR:#000000;PADDING-RIGHT: 10px； PADDING-BOTTOM: 10px;PADDING-LEFT:30px;HEIGHT: 100%;background-color:#7C7CC6;" 
    vAlign="top"></TD>
    </TR>
    <TR>
<!--      <TD width="10"><IMG src="files/Left.files/bg_left_bl.gif"></TD>-->
      <TD style="BACKGROUND-IMAGE: url(images/bg_left_bc1.gif);height:43px"></TD>
<!--      <TD width="10"><IMG -->
<!--src="files/Left.files/bg_left_br.gif"></TD>-->
    </TR>
</TABLE>

<% List privList = (List)request.getAttribute("privList"); 
   if(privList!=null){
%>

<SCRIPT type="text/javascript">
var tree = null;
var root = new TreeNode('系统菜单');
<%
	for(int i=0;i<privList.size();i++){
		TreeNode node = (TreeNode)privList.get(i);
		List childern = node.getChildren();
%>
	var a<%=i%> = new TreeNode('<%=node.getNodeName()%>');
	<% for(int j=0;j<childern.size();j++ ){
		TreeNode chNode = (TreeNode)childern.get(j);
	%>
		var child<%=j%> = new TreeNode('<%=chNode.getNodeName() %>','<%=chNode.getNodeUrl() %>', 'tree_node.gif', null, 'tree_node.gif', null);
		a<%=i%>.add(child<%=j%>);
<%}
%>
	root.add(a<%=i%>);
<%	
}%>
tree = new Tree(root);
tree.show('menuTree')
</SCRIPT>
<%}else{ %>
	<font color="red">您还没有登录</font>
<%} %>
</BODY>
</HTML>